package net.kingborn.erp.wc.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.kingborn.erp.wc.dao.MqttDao;
import net.kingborn.erp.wc.model.Mttq;
import net.kingborn.erp.wc.service.MttqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MttqServiceImpl implements MttqService {

    @Autowired
    MqttDao mqttDao;

    public Page<Mttq> pageSearch(long current, long size, JSONObject query){
       return mqttDao.pageSearch(new Page<>(current, size),query);
    }

    public  Page<Mttq> conditionSearch(long current, long size, JSONObject query){
        return mqttDao.conditionSearch(new Page<>(current, size),query);
    }
}
